<?php
namespace app\assets;

use yii\web\AssetBundle;

class WebAsset extends AssetBundle
{
    public $basePath = '@webroot';
    public $baseUrl = '@web';
//    public $css = [
//        'css/web/bootstrap.min.css',
//        'font-awesome/css/font-awesome.css',
//        'css/web/style.css?ver='.RELEASE_VERSION,
//    ];
//    public $js = [
//       'plugins/jquery-2.1.1.js',
//        'js/web/bootstrap.min.js',
//        'js/web/common.js?ver='.RELEASE_VERSION,
//    ];

    public function registerAssetFiles($view)
    {
        $release_version = defined("RELEASE_VERSION")?RELEASE_VERSION:time();
        $this->css = [
        'css/web/bootstrap.min.css',
        'font-awesome/css/font-awesome.css',
        'css/web/style.css?ver='.$release_version,
    ];

        $this->js = [
           'plugins/jquery-2.1.1.js',
            'js/web/bootstrap.min.js',
            'plugins/layer/layer.js',
            'js/web/common.js?ver='.$release_version,
        ];
        parent::registerAssetFiles($view); // TODO: Change the autogenerated stub
    }
}